/**
 * @className HomeServiceImpl
 * @author liuxuelin
 * @Date 2021/2/24
 * @version v1.0
 */

package com.hidt.shop.service.impl;

import com.hidt.shop.domain.Order_table;
import com.hidt.shop.mapper.HomeMapper;
import com.hidt.shop.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HomeServiceImpl implements HomeService {
    @Autowired
    private HomeMapper homeMapper;
    /**
     *@方法功能描述：查找当日的订单总量
     *@methodName findOrderCount
     *@params [order_table]
     *@return int
     *@author 刘雪林
     *@Date 2021/2/24
     */
    @Override
    public int findOrderCount() {
        int orderCount = homeMapper.findOrderCount();
        return orderCount;
    }
    /**
     *@方法功能描述：查找当日的订单总额
     *@methodName findTodayOrderAllPrice
     *@params []
     *@return java.lang.String
     *@author 刘雪林
     *@Date 2021/2/24
     */
    @Override
    public String findTodayOrderAllPrice() {
        String todayOrderPrice = homeMapper.findTodayOrderPrice();
        return todayOrderPrice;
    }

    /**
     *@方法功能描述：所有订单的销售总额
     *@methodName findAllOrderPrice
     *@params []
     *@return java.lang.String
     *@author 刘雪林
     *@Date 2021/2/24
     */
    @Override
    public String findAllOrderPrice() {
        String allOrderPrice = homeMapper.findAllOrderPrice();
        return allOrderPrice;
    }
    /**
     *@方法功能描述:待支付订单
     *@methodName findPay1
     *@params []
     *@return int
     *@author 刘雪林
     *@Date 2021/2/24
     */
    @Override
    public int findPay1() {
        int pay1 = homeMapper.findPay1();
        return pay1;
    }
    /**
     *@方法功能描述：待发货订单
     *@methodName findPay2
     *@params []
     *@return int
     *@author 刘雪林
     *@Date 2021/2/24
     */
    @Override
    public int findPay2() {
        int pay2 = homeMapper.findPay2();
        return pay2;
    }
    /**
     *@方法功能描述：已发货订单
     *@methodName findPay3
     *@params []
     *@return int
     *@author 刘雪林
     *@Date 2021/2/24
     */
    @Override
    public int findPay3() {
        int pay3 = homeMapper.findPay3();
        return pay3;
    }
    /**
     *@方法功能描述：已完成订单
     *@methodName findPay4
     *@params []
     *@return int
     *@author 刘雪林
     *@Date 2021/2/24
     */
    @Override
    public int findPay4() {
        int pay4 = homeMapper.findPay4();
        return pay4;
    }
}
